CDISC Builderâ„¢  2.1 - Installation Test Scripts - %sd2xpt
The following documentation contains test scripts and expected results for validating the CDISC Builder tool.  Do the following to verify proper installation:
  • Perform each test by performing the steps specified by the instructions.  
  • Evaluate the results of each step by comparing them with results described in the Documentation column. 
Script Description Documentation
sd2xpt1.sas Test the condition where the parameters: inpath, outpath, outfile, select, runcode and backcode are invalid. Instructions 1
sd2xpt2.sas Verify that if no data selection is made that all datasets in path is captured. Instructions 2
sd2xpt3.sas Verify the selection of specific datasets is selected.   Instructions 3
sd2xpt4.sas Verify the program generation of basecode option.   Instructions 4
sd2xpt5.sas Verify the program generation of backcode option.   Instructions 5
sd2xpt6a.sas

sd2xpt6b.sas

Test many datasets store in one xpt file. Instructions 6

Instructions 1
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the sd2xpt1.sas program and select "Batch Submit".

  3. Verify that it generates the file:sd2xpt1.log.

  4. Open the sd2xpt1.log.

  5. Verify that there will be 7 error messages:

    • ERROR: [sd2xpt] path for INPATH: c:\invalid does not exist. 

    • ERROR: [sd2xpt] path for OUTPATH: c:\invalid does not exist.

    • ERROR: [sd2xpt] has an invalid OUTFILE parameter. 

    • ERROR: [sd2xpt] cannot locate selected data invalid 

    • ERROR: [sd2xpt] the base code path does not exist. 

Instructions 2
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the sd2xpt2.sas program and select "Batch Submit".

  3. Verify the following three files are created:
    • sdxpt2a.xpt
    • sdxpt2b.xpt
    • sdxpt2c.xpt
  4. Verify that the log file sd2xpt2.log has no error.

Instructions 3
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm".  

  2. Right mouse click on the sd2xpt3.sas program and select "Batch Submit".

  3. Verify that only two xpt files which corresponding to the two specified datasets created.  The newly created files include: sd2xpt3a.xpt and sd2xpt3c.xpt.
  4. Verify that the log file sd2xpt3.log has no error.

Instructions 4
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the sd2xpt4.sas program and select "Batch Submit".

  3. Verify that the following files have been created:

    sd2xpt4.log
    sd2xpt4a.sas7bdat
    sd2xpt4a.xpt
    sd2xpt4b.sas7bdat
    sd2xpt4b.xpt
    sd2xpt4c.sas7bdat
    sd2xpt4c.xpt
    sd2xpt4_back.sas

  4. Verify that the log file sd2xpt4.log has no error.
  5. Delete the transport files: sd2xpt4a.xpt, sd2xpt4b.xpt and sd2xpt4c.xpt.
  6. Right mouse click on the sd2xpt4_back.sas and select "Batch Submit" to run the test.

  7. Verify that the transport files: sd2xpt4a.xpt, sd2xpt4b.xpt and sd2xpt4c.xpt are recreated.
  8. Verify that the log file sd2xpt4_back.log has no error.

Instructions 5
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the sd2xpt5.sas program and select "Batch Submit".

  3. Verify that the following files have been created:

    sd2xpt5.log
    sd2xpt5a.sas7bdat
    sd2xpt5a.xpt
    sd2xpt5b.sas7bdat
    sd2xpt5b.xpt
    sd2xpt5_back.sas  

  4. Verify that the log file sd2xpt5.log has no error.
  5. Delete the SAS datasets including: sd2xpt5a.sas7bdat and sd2xpt5b.sas7bdat.
  6. Open 'sd2xpt5_back.sas' and comment out the base code section by adding "/*" and "*/" to the beginning and the end of the section.
  7. Uncomment reverse code statements by deleting '/*' and '*/', then comment out the running code section by putting it between "/*" and "*/".
  8. Right mouse click on the sd2xpt5_back.sas and select "Batch Submit" to run the test.

  9. Verify that the two deleted datasets are recreated.
  10. Verify that the log file sd2xpt5_back.log has no error.

Instructions 6
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Delete sd2xpta.sas7bdat, sd2xptb.sas7bdat and sd2xptc.sas7bdat if they exist.

  3. Right mouse click on the sd2xpt6a.sas program and select "Batch Submit".

  4. Verify that the following file has been created:

    total.xpt

  5. Right mouse click on the sd2xpt6b.sas program and select "Batch Submit".
  6. Verify that the following files have been created:

    sd2xpta.sas7bdat
    sd2xptb.sas7bdat
    sd2xptc.sas7bdat

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009